const Layout = () => import("@/layout/index.vue");
// 审批管理

const routes = [
    {
        path: "/audit",
        name: "Audit",
        component: Layout,
        meta: {
            title: "审批管理",
            icon: "Audit",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/audit/task",
                name: "AuditTask",
                component: () => import("@/pages/audit/task.vue"),
                meta: {
                    title: "审批任务",
                    icon: "Audit",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/audit/flow",
                name: "AuditFlow",
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "审批配置",
                    icon: "Audit",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: 'tk_audit_config',
                },
            },
            {
                path: "/audit/type",
                name: "AuditType",
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "审批类型",
                    icon: "Audit",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: 'tk_audit_type',
                },
            },
        ]
    }
];

export default routes;
